<template>
  <div class="branch-box">
    <button
      v-if="node.subType === 0"
      class="add-branch"
      @click="addCondition"
    >
      添加条件
    </button>
    <slot>branch-box</slot>
  </div>
</template>
<script>
export default {
  name: 'BranchBox',
  components: {
  },
  props: {
    node: {
      type: Object,
      default: undefined
    }
  },
  methods: {
    addCondition () {
      this.$emit('addCondition')
    },
    delNode () {
      this.$emit('delNode')
    }
  }
}
</script>
